3.53 \(\int \frac {1}{a+c x^2} \, dx\)

Optimal. Leaf size=24 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {c}} \]

[Out]

arctan(x*c^(1/2)/a^(1/2))/a^(1/2)/c^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {205} \[ \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {c}} \]

Antiderivative was successfully verified.

[In]

Int[(a + c*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[c]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[c])

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin {align*} \int \frac {1}{a+c x^2} \, dx &=\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {c}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 24, normalized size = 1.00 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {c}} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + c*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[c]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[c])

________________________________________________________________________________________

fricas [A]  time = 0.81, size = 67, normalized size = 2.79 \[ \left [-\frac {\sqrt {-a c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right )}{2 \, a c}, \frac {\sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right )}{a c}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*x^2+a),x, algorithm="fricas")

[Out]

[-1/2*sqrt(-a*c)*log((c*x^2 - 2*sqrt(-a*c)*x - a)/(c*x^2 + a))/(a*c), sqrt(a*c)*arctan(sqrt(a*c)*x/a)/(a*c)]

________________________________________________________________________________________

giac [A]  time = 0.40, size = 15, normalized size = 0.62 \[ \frac {\arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*x^2+a),x, algorithm="giac")

[Out]

arctan(c*x/sqrt(a*c))/sqrt(a*c)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 16, normalized size = 0.67 \[ \frac {\arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(c*x^2+a),x)

[Out]

1/(a*c)^(1/2)*arctan(c*x/(a*c)^(1/2))

________________________________________________________________________________________

maxima [A]  time = 2.90, size = 15, normalized size = 0.62 \[ \frac {\arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*x^2+a),x, algorithm="maxima")

[Out]

arctan(c*x/sqrt(a*c))/sqrt(a*c)

________________________________________________________________________________________

mupad [B]  time = 0.07, size = 16, normalized size = 0.67 \[ \frac {\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {c}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a + c*x^2),x)

[Out]

atan((c^(1/2)*x)/a^(1/2))/(a^(1/2)*c^(1/2))

________________________________________________________________________________________

sympy [B]  time = 0.14, size = 53, normalized size = 2.21 \[ - \frac {\sqrt {- \frac {1}{a c}} \log {\left (- a \sqrt {- \frac {1}{a c}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{a c}} \log {\left (a \sqrt {- \frac {1}{a c}} + x \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*x**2+a),x)

[Out]

-sqrt(-1/(a*c))*log(-a*sqrt(-1/(a*c)) + x)/2 + sqrt(-1/(a*c))*log(a*sqrt(-1/(a*c)) + x)/2

________________________________________________________________________________________